

/*


vcc: 1, 
vss: 2, 

'/oe':4,
rw:5,
cs:6,

a0:10,
a1:11,
a2:12,
a3:13,
a4:14,
a5:15,
a6:16,
a7:17,
a8:18,
a9:19,
a10:20,
a11:21,
a12:22,
a13:23,
a14:24,


d0:30,
d1:31,
d2:32,
d3:33,
d4:34,
d5:35,
d6:36,
d7:37,


 */



var module = {
    
name: "ROM8K",
    
description: "ROM 8K x 8-bit",
    
pins : [

    [ 1, 'vcc'	],
    [ 2, 'vss'	],
    [ 3, '/oe'	],
    [ 4, 'rw'	],
    [ 5, 'cs'	],

    [ 6, 'd0'   ],
    [ 7, 'd1'   ],
    [ 8, 'd2'  ],
    [ 9, 'd3'  ],
    [10, 'd4'   ],
    [11, 'd5'   ],
    [12, 'd6'   ],
    [13, 'd7'   ],

    [14, 'a0'	],
    [15, 'a1'	],
    [16, 'a2'  ],
    [17, 'a3'  ],
    [18, 'a4'	],
    [19, 'a5'   ],
    [20, 'a6'   ],
    [21, 'a7'   ],
    [22, 'a8'   ],
    [23, 'a9'   ],
    [24, 'a10'   ],
    [25, 'a11'   ],
    [26, 'a12'  ],    




],
    
    
memory : {
    "rom" : 8192,
},
    
nodenames :
{
    vcc: 1,
    vss: 2,
    
    'func<rom>':3,

    '/oe':4,
    rw:5,
    cs:6,
    gate:7,

    a0:10,
    a1:11,
    a2:12,
    a3:13,
    a4:14,
    a5:15,
    a6:16,
    a7:17,
    a8:18,
    a9:19,
    a10:20,
    a11:21,
    a12:22,


    d0:30,
    d1:31,
    d2:32,
    d3:33,
    d4:34,
    d5:35,
    d6:36,
    d7:37,
    
    
    _d0:40,
    _d1:41,
    _d2:42,
    _d3:43,
    _d4:44,
    _d5:45,
    _d6:46,
    _d7:47,


},
    
segdefs :
[
    [7,'+',0],
],

    
transdefs:
[
    ['t00',6,7,2],
//    ['t00',4,7,2],
 
    ['t00',7,40,30],
    ['t00',7,41,31],
    ['t00',7,42,32],
    ['t00',7,43,33],
    ['t00',7,44,34],
    ['t00',7,45,35],
    ['t00',7,46,36],
    ['t00',7,47,37],
]


    
    
};
